Add TypingMind compatibility and PHI support#11
Open
chknd1nner wants to merge 1 commit intohorselock:mainfrom
Open
Add TypingMind compatibility and PHI support#11chknd1nner wants to merge 1 commit intohorselock:mainfrom
chknd1nner wants to merge 1 commit intohorselock:mainfrom
Conversation
40960f7 to
f93c421
Compare
- Add TypingMind setup guide with full endpoint URL requirement - Add PHI (Post History Instruction) injection for clients without native PHI - Handle both 'phi' and 'PHI' field names (case-insensitive) - Add anthropic-version, anthropic-beta, x-api-key to CORS allowed headers - Add web-search-2025-03-05 and web-fetch-2025-09-10 beta headers for TypingMind web tools - PHI is injected as user message after last user message, then stripped from request
f93c421 to
3f82dad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds TypingMind compatibility, web search/fetch capability, and PHI (Post History Instruction) support for clients without native PHI support.
Changes
/v1/messages)phiorPHIfield in request body, injects as user message after last user message, then strips before forwarding to Claude APIanthropic-version,anthropic-beta,x-api-keyto allowed headersweb-search-2025-03-05andweb-fetch-2025-09-10beta headers to enable "Web Browser" toggle switch to work in TypingMindNeed for Post History Injection (PHI) support
Unlike SillyTavern, clients like TypingMind don't have native PHI support. This allows users to send ephemeral per-request instructions (reply rules, formatting preferences) that aren't stored in conversation history, as long as the client (TypingMind does!) supports custom body elements. To use this function, just have the client send a custom body element "phi" with the desired PHI.